﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;

namespace BUS
{
    public partial class PhanCong_BUS
    {
        public DataTable LayDanhSachPhanCong()
        {
            PhanCong_DAO pcd = new PhanCong_DAO();
            DataTable dt = new DataTable();
            dt = pcd.LayDanhSachPhanCong();
            return dt;
        }

        public DataTable ThemMoiPhanCong(PhanCong PhanCong)
        {
            PhanCong_DAO pcd = new PhanCong_DAO();
            DataTable dt = new DataTable();
            dt = pcd.ThemMoiPhanCong(PhanCong); 
            return dt;
        }

        public DataTable ChiTietPhanCong(string MaPhanCong, string MaNhanVien)
        {
            PhanCong_DAO pcd = new PhanCong_DAO();
            DataTable dt = new DataTable();
            dt = pcd.ChiTietPhanCong(MaPhanCong, MaNhanVien);
            return dt;
        }
    }
}
